You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxVec Class > TMtxVec Methods > PolarToCart Method > TMtxVec.PolarToCart Method ([In] TMtxVec, [In] TMtxVec, int, int, int, int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxVec.PolarToCart Method ([In] TMtxVec, [In] TMtxVec, int, int, int, int)

Convert AmpltVec elements [aIndex]..[aIndex+Len-1] and PhaseVec elements [PIndex]..[PIndex+Len-1] from polar form (radius,angle) to cartesian form (x,y).

Syntax
C#
Visual Basic
public TMtxVec PolarToCart([In] TMtxVec AmpltVec, [In] TMtxVec PhaseVec, int aIndex, int PIndex, int Index, int Len);

The results are stored as complex numbers (x=Re, y=Im) in the calling object elements [Index]..[Index+Len-1]. Size and Complex properties of the calling object must be set explicitly. An exception is raised if TMtxVecBase.ConditionCheckConditionCheckis True and array borders are overrun/underrun.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!